var pdpPage = avalon.define({
	$id: "pdpPage",
	data: {
		content: "",
		title: "",
		createtime: "",
		creator: {
			name: ""
		}
	}
});
mui.ready(function() {
	var mui_policy = mui('#policy');
	var cid = $.getParameter("cid");
	mui.init({
		pullRefresh: {
			container: "#policy",
			down: {
				height: 50,
				auto: true,
				contentdown: $.i18n.contentDown,
				contentover: $.i18n.contentOver,
				contentrefresh: $.i18n.contentRefresh,
				callback: function() {
					setTimeout(function() {
						mui.ajax('/channelpolicy/pdp.json', {
							data: {
								cid: cid
							},
							dataType: 'json',
							success: function(data) {
								pdpPage.data = data;
								mui_policy.pullRefresh().endPulldownToRefresh();
							}
						});
					}, window.DAHUA_CONFIG.LOADING_TIME);

				}
			}
		}
	});
});